home *** CD-ROM | disk | FTP | other *** search
- apachectl(1) apachectl(1)
-
-
-
- NNAAMMEE
- apachectl - Apache HTTP server control interface
-
- SSYYNNOOPPSSIISS
- aappaacchheeccttll _c_o_m_m_a_n_d [...]
-
- DDEESSCCRRIIPPTTIIOONN
- aappaacchheeccttll is a front end to the Apache HyperText Transfer
- Protocol (HTTP) server. It is designed to help the admin
- istrator control the functioning of the Apache hhttttppdd dae
- mon.
-
- NNOOTTEE:: If your Apache installation uses non-standard paths,
- you will need to edit the aappaacchheeccttll script to set the
- appropriate paths to your PID file and your hhttttppdd binary.
- See the comments in the script for details.
-
- The aappaacchheeccttll script returns a 0 exit value on success,
- and >0 if an error occurs. For more details, view the
- comments in the script.
-
- Full documentation for Apache is available at
- hhttttpp::////hhttttppdd..aappaacchhee..oorrgg//
-
- OOPPTTIIOONNSS
- The _c_o_m_m_a_n_d can be any one or more of the following
- options:
-
- ssttaarrtt Start the Apache daemon. Gives an error if it
- is already running.
-
- ssttoopp Stops the Apache daemon.
-
- rreessttaarrtt Restarts the Apache daemon by sending it a
- SIGHUP. If the daemon is not running, it is
- started. This command automatically checks
- the configuration files via ccoonnffiiggtteesstt before
- initiating the restart to make sure Apache
- doesn't die.
-
- ffuullllssttaattuuss Displays a full status report from mmoodd__ssttaattuuss..
- For this to work, you need to have mod_status
- enabled on your server and a text-based
- browser such as _l_y_n_x available on your system.
- The URL used to access the status report can
- be set by editing the SSTTAATTUUSSUURRLL variable in
- the script.
-
- ssttaattuuss Displays a brief status report. Similar to
- the fullstatus option, except that the list of
- requests currently being served is omitted.
-
- ggrraacceeffuull Gracefully restarts the Apache daemon by send
- ing it a SIGUSR1. If the daemon is not run
- ning, it is started. This differs from a nor
- mal restart in that currently open connections
- are not aborted. A side effect is that old
- log files will not be closed immediately.
- This means that if used in a log rotation
- script, a substantial delay may be necessary
- to ensure that the old log files are closed
- before processing them. This command
- automatically checks the configuration files
- via ccoonnffiiggtteesstt before initiating the restart
- to make sure Apache doesn't die. On certain
- platforms that do not allow SIGUSR1 to be used
- for a graceful restart, an alternative signal
- may be used (such as SIGWINCH). graceful will
- send the right signal for your platform.
-
- ccoonnffiiggtteesstt Run a configuration file syntax test. It
- parses the configuration files and either
- reports SSyynnttaaxx OOkk or detailed information
- about the particular syntax error.
-
- hheellpp Displays a short help message.
-
- SSEEEE AALLSSOO
- hhttttppdd((88))
-
-
-
- September 1997 apachectl(1)
-